Configure the OSPF authentication type for the port. If you choose simple, you must configure the password with the ip ospf authentiation-key WORD<0-8> command. If you choose MD5, you must configure the MD5 key with the ip ospf message-digest-key <1-255> md5 WORD<0-16> command.
ip ospf authentication-type message-digest
ip ospf authentication-type none
ip ospf authentication-type sha-1
ip ospf authentication-type sha-2
ip ospf authentication-type simple
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} authentication-type message-digest
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} authentication-type none
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} authentication-type sha-1
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} authentication-type sha-2
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]} authentication-type simple
no ip ospf authentication-type
Identifies the slot and port in one of the following formats:
a single slot and port (slot/port)
a range of slots and ports (slot/port-slot/port)
a series of slots and ports (slot/port,slot/port,slot/port)
all ports on the same slot (slot/all)
all ports on the switch (all)
Note
The parameter sha-2, an update of SHA-1, can offer six hash functions that include SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224,SHA 512/256, with hash values that are 224, 256, 384, or 512 bits. However, the current release supports only SHA-256.
None
GigabitEthernet Interface Configuration